package ar.edu.utn.frgp.banco.servlets;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;


/**
 * Servlet implementation class LogoutServlet
 */
public class LogoutServlet extends GenericServlet {
	
	private static final long serialVersionUID = 1L;

    public LogoutServlet() {        
    }

	@Override
	public void realizarAccion(HttpServletRequest req, HttpServletResponse resp)
			throws Exception {
		req.getSession().invalidate();
		req.getRequestDispatcher("login.jsp").forward(req, resp);
	}

}
